package com.example.zhaojianxu.signin.englishStudy.study

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * create by @zhaojianxu on 2019/2/14
 */
class StudyAdapter(fragmentManager: FragmentManager,val list: MutableList<Fragment>): FragmentPagerAdapter(fragmentManager){

    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(p0: Int): Fragment {
        return list[p0]
    }

}